# -*- conding:utf-8 -*-

"""
@author: PoXiao
@file: creat_crossMap.py
@time: 2019/3/20 0020 14:57

"""
import numpy as np
from intersection import *

def creat_crossMap(Cross):
    cross_size = Cross.shape[0]  #获得Cross矩阵的行数
    crossMap = np.zeros((cross_size, cross_size))
    for i in range(0, cross_size):
        for j in range(0, cross_size):
            crossMap[i, j] = intersection(Cross[i,:], Cross[j,:])
            crossMap[i, i] = 0
    return crossMap
